package com.ims.core.enums;

/**
 * 统计表状态
 * 0    统计表未生成
 * 1    统计表生成中
 * 2    统计表已生成
 * 4    确认签名中
 * 5    确认签名成功
 * 9    撤销统计表中
 * 10    撤销签名中
 * @author IMS
 */
public enum StatStatus {
    STAT_NOT_GENERATED("0", "统计表未生成"),
    STAT_GENERATING("1", "统计表生成中"),
    STAT_GENERATED("2", "统计表已生成"),
    CONFIRM_SIGNING_IN_PROGRESS("4", "确认签名中"),
    CONFIRM_SIGN_SUCCESS("5", "确认签名成功"),
    CANCEL_STAT_IN_PROGRESS("9", "撤销统计表中"),
    CANCEL_SIGN_IN_PROGRESS("10", "撤销签名中"),
    UNKNOWN("-1", "未知");

    private final String code;
    private final String name;

    StatStatus(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
